package cn.edu.scau.cmi.zeyang.abstractfactory;

import cn.edu.scau.cmi.zeyang.domain.insurance.Insurance;

public abstract class AbstractFactory {

	public static AbstractFactory getFactory(String companyName) {
		switch (companyName) {
		case "PICC":
			return new PICCFactory();
		case "PingAn":
			return new PingAnFactory();
		default:
			return null;
		}
	}

	public abstract Insurance createInsurance(String type);


}
